package cinema.v1_5.model;

import java.time.LocalDateTime;

public class Session {
    private String id;
    private String movieId;
    private String hallId;
    private LocalDateTime startTime;
    private double price;

    public Session(String id, String movieId, String hallId,
                   LocalDateTime startTime, double price) {
        this.id = id; this.movieId = movieId; this.hallId = hallId;
        this.startTime = startTime; this.price = price;
    }

    public String getId()          { return id; }
    public String getMovieId()     { return movieId; }
    public String getHallId()      { return hallId; }
    public LocalDateTime getStartTime() { return startTime; }
    public double getPrice()       { return price; }

    @Override
    public String toString() {
        return id + " | " + movieId + " | " + hallId + " | " + startTime + " | " + price;
    }
}